<table class="table table-striped table-condensed">
    <thead>
        <tr>
            <th style="width: 100px;">Mã Sách</th>
            <th>Tên Sách</th>
            <th>Thể loại</th>
            <th>Tác giả</th>
            <th>Số lượng Tồn</th>
            <th>Giá nhập (vnđ)</th>
            <th></th>
        </tr>
    </thead>                        
    <tbody>
        <?php foreach($this->datas as $row) { ?>
            <tr>
                <td># <?php echo $row->MaSach;?></td>
                <td> <?php echo $row->TenSach;?></td>
                <td><?php echo $row->TenTheLoai;?></td>
                <td><?php echo $row->TacGia;?></td>
                <td><?php echo $row->SoLuongTon;?></td>
                <td><?php echo number_format($row->DonGiaNhap,0,',','.');?></td>
                <td>
                    <a onclick="return open_modal_editbook(<?php echo $row->MaSach;?>)" href="#"><i class="icon icon-edit icon-color"></i></a>
                    <a onclick="return delete_book(<?php echo $row->MaSach;?>)" class="fr" href="#"><i class="icon icon-trash icon-color"></i></a>
                </td>
            </tr>
        <?php } ?>
    </tbody>
    <tfoot>
    
    </tfoot>
</table>
<?=$this->paginationControl($this->datas,"Sliding","partial/pagination-control.phtml")?>

